<include file="Public:head" />
<style>

    .table-striped tr  .td_dan{
        line-height: 30px;text-align: right;width: 10%
    }
    .width20{
        width: 260px;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        人员信息{$info['id']?'修改':'添加'}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <form action="__SELF__" method="post" class="form-horizontal form_hori3">
                            <table class="table table-striped no-margin">
                                <tr>
                                    <td class="td_dan" >姓名  <span style="color: red">*</span></td>
                                    <td width="20%" style="text-align: left;">
                                        <input type="text" placeholder="姓名" value="{$info.name}" id="name" class="form-control width20" name="name">
                                    </td>
                                    <td class="td_dan">用户名 <span style="color: red">*</span</td>
                                    <td width="40%"  style="text-align: left;">
                                        <if condition="ACTION_NAME eq 'unitAdd'">
                                            <input type="text" placeholder="" value="{$info.username}" id="username" class="form-control width20" name="username">
                                            <else/>
                                            <span style="line-height: 30px">{$info.username}</span>
                                        </if>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td_dan" > 城市  <span style="color: red">*</span></td>
                                    <td width="20%" style="text-align: left;">
                                        <input type="text" placeholder="" value="{$info.city}" id="city" class="form-control width20" name="city">
                                    <td class="td_dan">Email <span style="color: red">*</span></td>
                                    <td width="40%"  style="text-align: left;">
                                        <input type="text" placeholder="" value="{$info.email}" id="B_number1" class="form-control width20" name="email">
                                    </td>
                                </tr>
                                <tr>

                                    <td class="td_dan" >角色  <span style="color: red">*</span></td>
                                    <td width="20%" style="text-align: left;">
                                        <select class="form-control width20" name="typeid"  style="width: 260px;padding: 5px;">
                                            <volist name="group" id="vo">
                                                <option value="{$vo['id']}" {$info['typeid'] == $vo['id']?'selected':''}>{$vo.title}</option>
                                            </volist>
                                        </select>
                                    </td>
                                    <td class="td_dan unit" > 联系方式  <span style="color: red">*</span></td>
                                    <td width="20%" style="text-align: left;">
                                        <input type="text" placeholder="联系方式" value="{$info.tel}" id="tel" class="form-control width20" name="tel">
                                    </td>

                                </tr>
                                <tr>
                                    <td class="td_dan" > 通信地址  <span style="color: red">*</span></td>
                                    <td width="20%" style="text-align: left;" colspan="2">
                                        <input type="text" placeholder="" value="{$info.address}" id="address" class="form-control" name="address">
                                    </td>

                                    </td>
                                </tr>
								<tr>

                                    <td class="td_dan" >校区  <span style="color: red">*</span></td>
                                    <td width="20%" style="text-align: left;">
										
                                        <select class="form-control width20" name="sarea"  style="width: 260px;padding: 5px;">
										<option value="">请选择校区</option>
                                            <volist name="sarea" id="vo">
                                                <option value="{$vo['id']}" {$info['sarea'] == $vo['id']?'selected':''}>{$vo.name}</option>
                                            </volist>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4"  >
                                        <input name="id"  type="hidden" value="{$info.id}">
                                        <input name="type"  type="hidden" value="{$type}">
                                        <button type="submit" class="action-button ajax-post" target-form="form_hori3" style="margin-left: 550px">{$info['id']?'修改':'新增'}</button>
                                        <button type="button" class="action-button" onclick="history.go(-1)">返回</button>
                                    </td>
                                </tr>

                            </table>
                        </form>
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">

    <script>
        $(function () {
            //区分跳转页面
            var type = {$type|default='0'};
            if(type == 1)
            {
                highlight_nav2('{:U("Unit/user_group")}');
            }
            else
            {
                highlight_nav2('{:U("Unit/user")}');
            }
        })
    </script>
</block>
